// Copyright 2007 the original author or authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package lichen.services.job;

import java.util.Collection;

import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.quartz.SchedulerFactory;
import org.quartz.impl.StdSchedulerFactory;

/**
 * 定时器的代理类.
 * @author jcai
 * @version $Revision: 7 $
 * @since 0.0.1
 */
public class SchedulerFactoryProxy implements SchedulerFactory {

		private StdSchedulerFactory _factoryDelegate;

		public SchedulerFactoryProxy(){
			this._factoryDelegate= new StdSchedulerFactory();
		}

		/**
		 * 
		 * @see java.lang.Object#equals(java.lang.Object)
		 */
		public boolean equals(Object obj) {
			return _factoryDelegate.equals(obj);
		}

		/**
		 * 
		 * @see org.quartz.SchedulerFactory#getAllSchedulers()
		 */
		public Collection getAllSchedulers() throws SchedulerException {
			return _factoryDelegate.getAllSchedulers();
		}

		/**
		 * 
		 * @see org.quartz.SchedulerFactory#getScheduler()
		 */
		public Scheduler getScheduler() throws SchedulerException {
			return _factoryDelegate.getScheduler();
		}

		/**
		 * 
		 * @see org.quartz.SchedulerFactory#getScheduler(java.lang.String)
		 */
		public Scheduler getScheduler(String arg0) throws SchedulerException {
			return _factoryDelegate.getScheduler(arg0);
		}

		/**
		 * 
		 * @see java.lang.Object#hashCode()
		 */
		public int hashCode() {
			return _factoryDelegate.hashCode();
		}


		/**
		 * 
		 * @see java.lang.Object#toString()
		 */
		public String toString() {
			return _factoryDelegate.toString();
		}
}
